package com.study.design.pattern.principle.openclone;

import lombok.ToString;
import java.math.BigDecimal;

/**
 * @Author: gongsl
 * @Date: 2025-01-11 15:17
 * @description: python课程实现类
 */
@ToString
public class PythonCourse implements ICourse {
    /**
     * 课程id
     */
    private final Integer id;
    /**
     * 课程名称
     */
    private final String name;
    /**
     * 授课教师
     */
    private final String teacher;
    /**
     * 课程价格
     */
    private final BigDecimal price;

    public PythonCourse(Integer id, String name, String teacher, BigDecimal price) {
        this.id = id;
        this.name = name;
        this.teacher = teacher;
        this.price = price;
    }

    @Override
    public Integer getId() {
        return id;
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public BigDecimal getPrice() {
        return price;
    }

    public String getTeacher() {
        return teacher;
    }
}
